<!DOCTYPE html>
<html lang="zh-CN">

<head>

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

  <title>8 - LED时钟 (HTML+CSS+JS)</title>

  <link rel="stylesheet" href="./css/index.css">

</head>

<body>

  <!-- 父盒子 -->
  <div class="box">
    <!-- 每个数字元素，每个数字包含 7段 led灯 -->
    <div class="number">
      <span style="--ga-name:r1c2"></span>
      <span style="--ga-name:r2c1"></span>
      <span style="--ga-name:r2c3"></span>
      <span style="--ga-name:r3c2"></span>
      <span style="--ga-name:r4c1"></span>
      <span style="--ga-name:r4c3"></span>
      <span style="--ga-name:r5c2"></span>
    </div>
    <div class="number">
      <span style="--ga-name:r1c2"></span>
      <span style="--ga-name:r2c1"></span>
      <span style="--ga-name:r2c3"></span>
      <span style="--ga-name:r3c2"></span>
      <span style="--ga-name:r4c1"></span>
      <span style="--ga-name:r4c3"></span>
      <span style="--ga-name:r5c2"></span>
    </div>

    <!-- 时分秒中间的两点 -->
    <div class="colon"></div>

    <div class="number">
      <span style="--ga-name:r1c2"></span>
      <span style="--ga-name:r2c1"></span>
      <span style="--ga-name:r2c3"></span>
      <span style="--ga-name:r3c2"></span>
      <span style="--ga-name:r4c1"></span>
      <span style="--ga-name:r4c3"></span>
      <span style="--ga-name:r5c2"></span>
    </div>
    <div class="number">
      <span style="--ga-name:r1c2"></span>
      <span style="--ga-name:r2c1"></span>
      <span style="--ga-name:r2c3"></span>
      <span style="--ga-name:r3c2"></span>
      <span style="--ga-name:r4c1"></span>
      <span style="--ga-name:r4c3"></span>
      <span style="--ga-name:r5c2"></span>
    </div>

    <div class="colon"></div>

    <div class="number">
      <span style="--ga-name:r1c2"></span>
      <span style="--ga-name:r2c1"></span>
      <span style="--ga-name:r2c3"></span>
      <span style="--ga-name:r3c2"></span>
      <span style="--ga-name:r4c1"></span>
      <span style="--ga-name:r4c3"></span>
      <span style="--ga-name:r5c2"></span>
    </div>
    <div class="number">
      <span style="--ga-name:r1c2"></span>
      <span style="--ga-name:r2c1"></span>
      <span style="--ga-name:r2c3"></span>
      <span style="--ga-name:r3c2"></span>
      <span style="--ga-name:r4c1"></span>
      <span style="--ga-name:r4c3"></span>
      <span style="--ga-name:r5c2"></span>
    </div>
  </div>

  <!-- 使用 js 动态设置时间等 -->
  <script src="./js/index.js"></script>

</body>

</html>